<%@ page import="cn.school.entity.Student" %>
<%@ page import="java.util.Map" %>
<%@ page import="java.util.HashMap" %><%--
  Created by IntelliJ IDEA.
  User: oldliu
  Date: 2022-02-24
  Time: 14:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
  <%
      request.setAttribute("notice","胡冰英语不好");
      session.setAttribute("notice","胡冰日语要西");

      Student student=new Student();
      student.setSex("妖");
      student.setSname("牛魔王");
      student.setTelephone("1377777777777");
      request.setAttribute("d",student);
      String[]sr={"萝卜","茄子","西红柿","菠萝"};
      request.setAttribute("fruit",sr);
      Map<String,String> map=new HashMap<>();
      map.put("dog","狗");
      map.put("cat","猫");
      map.put("cow","牛");
      request.setAttribute("animal",map);
  %>
<h1>${notice}</h1>
  <h1>${sessionScope.notice}</h1>
<%--  <h1>${notice.title}</h1>--%>
<h1>==${fff.aaas}??</h1>
<h1>
    ${d.sname},${d["sex"]}<%--,${d[sex]}--%>
</h1>
<h1>${fruit[1]},${fruit[6]}</h1>
<h1>
    ${animal.cow}==${animal["cat"]}
</h1>
<h1>
    手机：${d.getTelephone()}
</h1>
</body>
</html>
